// 物联网-云云对接
import http from './http';
//表格列表
const clientList = (pageNum = 1, pageSize = 10, _, clientId) => {
  return http.get('/iot/clientDetails/list', {
    params: {
      pageNum,
      pageSize,
      clientId,
    }
  })
}
// 获取授权平台
const platForm = (_, dictLabel) => {
  return http.get('/system/dict/data/type/oauth_platform', {
    params: {
      dictLabel
    }
  });
};
// 获取某条数据信息
const getInfo = (clientId) => {
  return http.get('/iot/clientDetails/' + clientId)
}

export default {
  clientList,
  platForm,
  getInfo
}